import java.util.Scanner;

public class Main {
	public static void main(String[] args)
	{
		
		List dataList = new List();
		Scanner in = new Scanner(System.in);
		System.out.println("Enter list:");
		dataList.readList();
		System.out.println("You entered list:");
		dataList.writeList();
		int from = 0;
		int to = 0;
		
		System.out.println("Enter from what change and to what change:");
		
		from = in.nextInt();
		to = in.nextInt();
		in.close();
		dataList.swap(from,to);
		System.out.println("Resulted list:");
		dataList.writeList();
		
	}
}
